import request from '@/utils/request'

// 查询保卫工作列表
export function listSecuritywork(query) {
  return request({
    url: '/system/securitywork/list',
    method: 'get',
    params: query
  })
}

// 查询保卫工作详细
export function getSecuritywork(id) {
  return request({
    url: '/system/securitywork/' + id,
    method: 'get'
  })
}

// 新增保卫工作
export function addSecuritywork(data) {
  return request({
    url: '/system/securitywork',
    method: 'post',
    data: data
  })
}

// 修改保卫工作
export function updateSecuritywork(data) {
  return request({
    url: '/system/securitywork',
    method: 'put',
    data: data
  })
}

// 删除保卫工作
export function delSecuritywork(id) {
  return request({
    url: '/system/securitywork/' + id,
    method: 'delete'
  })
}
